public class Card {
  public String suit;//花色
  public  int rank;//牌值

    public Card(int rank, String suit) {
        this.rank = rank;
        this.suit = suit;
    }

    public String getSuit() {
        return suit;
    }

    public void setSuit(String suit) {
        this.suit = suit;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    @Override//重写toString

    public String toString() {
        return
                "花色" + suit +
                " 牌值:" + rank
                ;

    }

}
